package com.zc.manager.device.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 品类对象 athena_iot_category
 * 
 * @author xiepufeng
 * @date 2022-05-28
 */
public class IotCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 品类标识 */
    @Excel(name = "品类标识")
    @NotNull(message = "品类标识不能为空")
    @Size(max = 50, message = "品类标识长度不能超过50个字符")
    private String categoryMark;

    /** 品类名称 */
    @Excel(name = "品类名称")
    @NotNull(message = "品类名称不能为空")
    @Size(max = 50, message = "品类名称长度不能超过50个字符")
    private String categoryName;

    /** 描述 */
    @Excel(name = "描述")
    @Size(max = 200, message = "品类描述长度不能超过200个字符")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryMark(String categoryMark)
    {
        this.categoryMark = categoryMark;
    }

    public String getCategoryMark()
    {
        return categoryMark;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mark", getCategoryMark())
            .append("parentId", getParentId())
            .append("categoryName", getCategoryName())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
